package com.kk.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

public class User {
    String name;
    String password;
    String sex;
    List hobby;
    String aria;
//    @DateTimeFormat(pattern = "yyyy-MM-dd",iso = DateTimeFormat.ISO.DATE,fallbackPatterns = "yyyy/MM/dd")
    Date birth;

    public User() {
    }

    public User(String name, String password, String sex, List hobby, String aria) {
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.hobby = hobby;
        this.aria = aria;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List getHobby() {
        return hobby;
    }

    public void setHobby(List hobby) {
        this.hobby = hobby;
    }

    public String getAria() {
        return aria;
    }

    public void setAria(String aria) {
        this.aria = aria;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", hobby=" + hobby +
                ", aria='" + aria + '\'' +
                ", birth=" + birth +
                '}';
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

}
